﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="defaultedit.aspx.cs" Inherits="Eugenhome.Atrium.Bookmark.Web.DefaultEdit" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>DailyImage-Verwaltung</title>
    <link rel="stylesheet" type="text/css" href="../style.css">
    <meta name="robots" content="noindex">
    <meta http-equiv="expires" content="0">
</head>
<body>
    <form id="form1" runat="server">
    <table cellpadding="0" cellspacing="0" class="editTable">
        <tr>
            <td colspan="2" class="tdUnderline">
                <div class="title">
                    DailyImage verwalten</div><a href="default.aspx"><img src="gui/back.png" title="Zurück zur Startseite"/></a>
            </td>
        </tr>
        <tr>
            <td colspan="2">
            </td>
        </tr>
        <tr>
            <td colspan="2">
                &nbsp;
            </td>
        </tr>
        <tr>
            <td colspan="2">
                <asp:RadioButton ID="rbDay" runat="server" AutoPostBack="True" Checked="True" GroupName="rb"
                    OnCheckedChanged="rbDay_CheckedChanged" Text="Tags-Bilder   " />
                <asp:RadioButton ID="btnDefault" runat="server" AutoPostBack="True" GroupName="rb"
                    OnCheckedChanged="rbDay_CheckedChanged" Text="Default-Bilder" />
            </td>
        </tr>
        <tr>
            <td style="width: 250px;">
                <asp:ListBox ID="lstItems" runat="server" AutoPostBack="True" Height="250" Width="250"
                    OnSelectedIndexChanged="lstBookmarks_SelectedIndexChanged"></asp:ListBox>
            </td>
            <td valign="top">
                <table cellpadding="4" cellspacing="0" style="margin-left: 20px;">
                    <tr>
                        <td colspan="2" style="text-align: right;" class="tdUnderline">
                            <asp:ImageButton ID="btnSave" runat="server" ImageUrl="gui/save_edit.png" ToolTip="Änderungen speichern"
                                OnClick="btnSave_Click" CssClass="editButtons" />
                            <asp:ImageButton ID="btnAdd" runat="server" ImageUrl="gui/new.png" ToolTip="Neu"
                                OnClick="btnAdd_Click" CssClass="editButtons" />
                            <asp:ImageButton ID="btnCopy" runat="server" ImageUrl="gui/copy.png" ToolTip="Neu"
                                OnClick="btnCopy_Click" CssClass="editButtons" />
                            <asp:ImageButton ID="btnDelete" runat="server" ImageUrl="gui/delete.png" ToolTip="Löschen"
                                OnClick="btnDelete_Click" CssClass="editButtons" />
                        </td>
                    </tr>
                    <tr>
                        <td style="width: 150px;">
                            Tag (MonatTag)
                        </td>
                        <td>
                            <asp:TextBox ID="txtDay" runat="server" Text="<%#SelectedItem.Day%>" Width="180"
                                AutoComplete="off"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            Beschreibung
                        </td>
                        <td>
                            <asp:TextBox ID="txtDesc" runat="server" Text="<%#SelectedItem.Desc%>" Width="350"
                                AutoComplete="off"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td style="white-space: nowrap">
                            Link zur Beschreibung
                        </td>
                        <td>
                            <asp:TextBox ID="txtDescHref" runat="server" Text="<%#SelectedItem.DescHref%>" Width="350"
                                AutoComplete="off"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            Bild-Link
                        </td>
                        <td>
                            <asp:TextBox ID="txtImageHref" runat="server" Text="<%#SelectedItem.ImageHref%>"
                                Width="350" AutoComplete="off"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td colspan="2">
                        </td>
                    </tr>
                    <tr>
                        <td>
                            &nbsp;
                        </td>
                        <td style="vertical-align: top;">
                            <img src="<%#SelectedItem.ImageHref%>" height="90" />
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
        <tr>
            <td colspan="2" style="height: 40px;">
            </td>
        </tr>
        <tr>
            <td colspan="2">
                Bilder am Server
            </td>
        </tr>
        <tr>
            <td>
                <asp:ListBox ID="lstDailyImages" runat="server" AutoPostBack="True" Height="250"
                    Width="250" OnSelectedIndexChanged="lstDailyImages_SelectedIndexChanged"></asp:ListBox>
            </td>
            <td style="vertical-align: top;">
                <table cellpadding="4" cellspacing="0" style="margin-left: 20px;">
                    <tr>
                        <td colspan="2" style="text-align: right;" class="tdUnderline">
                            <asp:ImageButton ID="btnImageDelete" runat="server" ToolTip="Löschen" OnClick="btnImageDelete_Click"
                                ImageUrl="gui/delete.png" CssClass="editButtons" />
                        </td>
                    </tr>
                    <tr>
                        <td style="width: 150px;">
                            <asp:Button ID="btnFileUpload" runat="server" Text="Bild hochladen" Width="120" OnClick="btnFileUpload_Click" />
                        </td>
                        <td>
                            <asp:FileUpload ID="fileUpload" runat="server" Width="350px" />
                        </td>
                    </tr>
                    <tr>
                        <td>
                        </td>
                        <td>
                            <img src="<%#SelectedImage%>" height="90" />
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
    </table>
    </form>
</body>
</html>
